package com.qding.park.common.utils.validate;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

@Constraint(validatedBy={DataTimeFormatValid.class})
@Documented 
@Target( {ElementType.ANNOTATION_TYPE,ElementType.METHOD, ElementType.FIELD }) 
@Retention(RetentionPolicy.RUNTIME) 
public @interface DataTimeFormat {
	String message() default "日期格式不正确"; 
	String format() default "yyyy-MM-dd HH:mm:ss";//日期格式
	 Class<?>[] groups() default {}; 
	 Class<? extends Payload>[] payload() default {}; 
}
